package com.testing.sunnyclient.service.impl;

import com.testing.sunnycommon.service.DistributionRunService;
import com.testing.sunnycommon.service.SunnyRunService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Classname DistributionRunServiceImpl
 * @Description 类型说明
 * @Date 2023/7/14 20:21
 * @Created by 特斯汀Roy
 */
@DubboService
@Slf4j
public class DistributionRunServiceImpl implements DistributionRunService {
    @Autowired
    SunnyRunService sunnyRunService;

    @Override
    public void runOnClient(Long projectId) {
        log.info("---------------------客户端开始执行自动化测试");
        //直接调用之前写好的自动化测试执行方法
        sunnyRunService.runTest(projectId);
    }
}
